
<ul class="treeview-menu">
    @foreach($menus as $menu)
        <li {{ isset($menu['click'])?'class=active':'' }}>
        @if($menu['permission'])
            <a href="{{ action($menu['permission'])  }}">
                <i class="fa fa-circle-o"></i> {{ $menu['name'] }}
            </a>
        @else
            <a href="#"><i class="fa fa-circle-o"></i> {{ $menu['name'] }}
                <span class="pull-right-container">
                    <i class="fa fa-angle-left pull-right"></i>
                </span>
            </a>
            @if(isset($menu['children']))
            {!! view('Home.Shared.m',['menus'=>$menu['children']]) !!}
            @endif
        @endif
        </li>
    @endforeach
</ul>
